package houpu.hanjiang.controller;

import houpu.hanjiang.model.TPart;
import houpu.hanjiang.service.TPartservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author:xiao
 * @Date: 2019/11/5 17:20
 */
@RestController
@RequestMapping("pages")
public class TPartcontroller {
    @Autowired
    private TPartservice tPartservice;
    @RequestMapping("list.do")
   public List<TPart> list(){
        List<TPart> maps=tPartservice.TPartAll();
        System.out.println(maps);
        return maps;
    }

    @RequestMapping("add")
    public int add(){
       TPart tPart=new TPart();
//       tPart.setPId();
        return 0;
    }

}
